/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jsysacc.asistencia.model.logic.maestros;

import com.jsysacc.asistencia.model.beans.maestros.Parametro;
import com.jsysacc.asistencia.model.dao.design.maestros.IParametroDAO;
import com.jsysacc.asistencia.model.dao.factory.MainDAOFactory;
import org.joda.time.DateTime;

/**
 *
 * @author Carlos
 */
public class ParametroLogic {

    IParametroDAO parametroDAO = MainDAOFactory.getInstance().getParametroDAO();

    public ParametroLogic() {
    }

    public DateTime getNow() throws Exception {
        return parametroDAO.getNow();
    }

    public boolean insert(Parametro entity) throws Exception {
        return parametroDAO.insert(entity);
    }

    public boolean update(Parametro entity) throws Exception {
        return parametroDAO.update(entity);
    }

    public Parametro getByPk(String pk) throws Exception {
        return parametroDAO.getByPk(pk);
    }

}
